from Mod_main_form import Frm_main
from Mod_language import *
import wx


class App_ferm_client(wx.App):
    def __init__(self):
        wx.App.__init__(self)

    def OnInit(self):
        syslang = GetLanguage()
        if syslang is None:
            return False
        self.mainForm = Frm_main(parent=None, id=-1, language=syslang)
        self.mainForm.Show()
        self.mainForm.Center()
        self.SetTopWindow(self.mainForm)
        return True

    def OnExit(self):
        exit()

    
